﻿using DotNetNuke.Services.Mail;
using System;

namespace DotNetNuke.Modules.UserDefinedTable
{


  public class EditEMail : EditString
  {



    protected override bool IsValidType()
    {
      if ( !string.IsNullOrEmpty(this.Value) && string.IsNullOrEmpty(base.strValRule) )
        return DotNetNuke.Services.Mail.Mail.IsValidEmailAddress(this.Value, EditControl.PortalID);
      
      return true;
    }



  }

}

